<?php
$pPageIsPublic = false;
include '../_common.php';
$_SESSION ["m1"] = "restaurant";
$_SESSION ["m2"] = 'restaurant-list';
$objName = "Restaurant";
$objUrl = "restaurant";
$objTitle = "Restaurant";
?>
<?php include("header.php"); ?>
<?php include("sidebar.php"); ?>
<div id="list">
	<h2><?= $objTitle ?>s</h2>
<?php Common::hFrmFilterAdmin($objName, $objTitle, $objUrl)?>
<div id="wrap-list">
<?php
	global $returnUrl, $sideMenu;
	$returnUrl = $objUrl;
	$sideMenu = $objUrl;
	
	$objLoaded  = new Restaurant();
	$objLoaded ->loadItems("#orderId ASC", "#estado like '". $chkstatus ."%'");
	echo Common::hSimpleGridV2($objName, $objTitle, $objUrl,$objLoaded, true,
		array(
			'description' => true,
			'navs' => array (
				/*0 => array (
					'title'   	=> 'Zonas',
					'count'   	=> 'gZonaCount',
					'objName' 	=> 'Zona'
				),*/
				1 => array (
					'title'   	=> 'Categor&iacute;as',
					'count'   	=> 'gCategoriaCount',
					'objName' 	=> 'Categoria'
					),
				2 => array (
					'title' 	=> 'Im&aacute;genes',
					'count'     => 'gImagesCount',
					'objName' 	=> 'rest-file'
				)
			)
		)
	);

?>
</div>
</div>
<?php include("footer.php"); ?>